package com.xx.service;

import com.github.pagehelper.PageInfo;
import com.xx.entity.Categories;
import com.xx.entity.CategoriesList;

import java.util.List;


public interface CategoriesService{
    //ID查询
    Categories queryById(Integer categoryId);

    //查询指定行数据
    PageInfo<Categories> queryAllByLimit(Categories categories,Integer pageNum);

    //新增数据
    int insert(Categories categories);

    //修改数据
    int update(Categories categories);

    //主键删除
    int deleteById(Integer categoryId);

    List<CategoriesList> list();

    Object queryByPage(Categories categories, Integer pageNum);
}
